#ifndef APPS_FILE_H
#define APPS_FILE_H

#include "stm32f4xx.h"

#define FILE_MAX_TYPE_NUM 7 /* 最多FILE_MAX_TYPE_NUM个大类 */
#define FILE_MAX_SUBT_NUM 4 /* 最多FILE_MAX_SUBT_NUM个小类 */

typedef enum FatTpye
{
    EX_FLASH = 0, /* 外部qspi flash,卷标为1 */
    SD_CARD       /* SD卡,卷标为0 */
} FatTpye;

uint8_t mount(FatTpye type, uint8_t mt);
void un_mount(FatTpye type);
uint8_t exfuns_get_free(FatTpye type, uint32_t *total, uint32_t *free);
uint8_t exfuns_format(FatTpye type);
#endif // APPS_FILE_H
